
import http from "@/utils/http";
import {YNGP} from "../script/const";

/**
 * 主题策略
 * @return {Promise} Array
 */
export function announcementList(option) {
  const url = `${YNGP}/tlby/app/room/announcement/list.htm`;
  const params = {
    ...option
  };
  return http.get(url, params ); 
}

/**
 * POST请求示例
 * @param {Number} id - 参数注释
 * @return {Promise} Object
 */
export function postRequest(option) {
  const url = `${YNGP}/tlby/some/url`;
  const params = {
    ...option
  };
  return http.post(url, params);
  
}
